<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/commons/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>  
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<jsp:include page="/WEB-INF/views/commons/lib.jsp" />	 
	<script src="/static/module/subject/form.js"></script>
</head>
<body>
<div class="widget-box">
	<div class="widget-header header-color-blue">
		<span>栏目详情</span>
		<button class="btn btn-primary btn-sm btn-save pull-right"><i class='icon-save bigger-150'></i>保存</button>
	</div>
	<div class="widget-body panel-body">
		<form:form id="inputForm" modelAttribute="subject" method="post"
			class="form-horizontal">
			<form:hidden path="id" />

			<div class="form-group">
				<label class="col-sm-2 control-label">上级栏目:</label>
				<div class="col-sm-10">
					<%--  <sys:treecombo id="subject" name="parent.id"
						value="${subject.parent.id}" labelName="parent.name"
						labelValue="${subject.parent.name}" title="栏目"
						url="${ctx }/subject/subjectTreeData" extId="${subject.id}"   disabled='${empty subject.id?"":"disabled" }'
						/>  --%>
						
						  <sys:treelayer id="subject" name="parent.id"
						value="${subject.parent.id}" labelName="parent.name"
						labelValue="${subject.parent.name}" title="请选择上级栏目"
						url="${ctx }/subject/subjectTreeData" extId="${subject.id}" 
						/>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">归属机构:</label>
				<div class="col-sm-10">
						<%-- <sys:treelayer id="dept" name="dept.id"
						value="${subject.dept.id}" labelName="dept.name" 
						labelValue="${subject.dept.name}" title="请选择所属机构"
						url="${ctx }/subject/deptTreeData"  /> --%>
						<sys:treecombo id="dept" name="dept.id"
						value="${subject.dept.id}" labelName="dept.name" 
						labelValue="${subject.dept.name}" title="请选择所属机构"
						url="${ctx }/subject/deptTreeData"  />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">栏目名称:</label>
				<div class="col-sm-10">
					<form:input path="name" htmlEscape="false" maxlength="50"
						class="form-control required" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">栏目编码:</label>
				<div class="col-sm-10">
					<form:input path="code" htmlEscape="false" maxlength="50"
						class="form-control required" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">缩略图:</label>
				<div class="col-sm-10">
					<form:input path="image" htmlEscape="false" maxlength="255"
						class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">排序:</label>
				<div class="col-sm-10">
					<form:input path="sort" htmlEscape="false" maxlength="11"
						class="form-control " />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">是否允许评论:</label>
				<div class="col-sm-10">
					<%-- <form:radiobuttons path="is_omment" items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
					<label>
						<input name="is_comment" value="1" checked="checked" type="radio" class="ace">
						<span class="lbl"> 是</span>
					</label>&nbsp;&nbsp;&nbsp;
					<label>
						<input name="is_comment" value="0" type="radio" class="ace">
						<span class="lbl"> 否</span>
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">是否需要审核:</label>
				<div class="col-sm-10">
					<%-- <form:radiobuttons path="is_audit" items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
					<label> <input type="radio"
						name="is_audit" value="1"  checked="checked" class="ace"><span class="lbl"> 是</span>
					</label>&nbsp;&nbsp;&nbsp;
					<label> <input type="radio"
						name="is_audit" value="0" class="ace"><span class="lbl"> 否</span>
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">状态:</label>
				<div class="col-sm-10">
					<%-- <form:radiobuttons path="is_audit" items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
					<label> <input type="radio"
						name="status" value="1" checked="checked" class="ace"><span class="lbl"> 是</span>
					</label>&nbsp;&nbsp;&nbsp; 
					<label> <input type="radio"
						name="status" value="0" class="ace"><span class="lbl"> 否</span>
					</label>
				</div>
			</div>
		</form:form>
	</div>
</div>
</body>
</html>
